package com.jzy.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jzy.common.utils.PageUtils;
import com.jzy.gulimall.product.entity.AttrEntity;
import com.jzy.gulimall.product.vo.AttrGroupRelationVo;
import com.jzy.gulimall.product.vo.AttrRespVo;
import com.jzy.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author jzy
 * @email 1802511725@qq.com
 * @date 2020-07-11 10:08:13
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void save(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);

    AttrRespVo getInfoById(Long attrId);

    void updateAttrVoById(AttrVo attr);

    List<AttrEntity> getAttrRelationList(Long attrgroupId);

    void deleteRelation(AttrGroupRelationVo[] vos);

    PageUtils getAttrNoRelationList(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

